export const fileName = (url: string): string => {
    let pos = url.lastIndexOf(`/`);
    if (pos == -1) pos = url.lastIndexOf("\\");
    return url.substr(pos + 1);
}

export default (url: string): string => {
    const _fileName = fileName(url);
    const perIndex = _fileName.indexOf(`.`);
    const nextIndex = _fileName.length;
    return _fileName.substring(perIndex + 1, nextIndex);
}